import 'package:flutter/widgets.dart';

class Test21 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Image.network(
          "https://www.wanandroid.com/blogimgs/ad6289d3-7d21-424a-898d-040dbbe46af8.png",
          frameBuilder: (BuildContext context, Widget child, int frame,
              bool wasSynchronouslyLoaded) {
        if (wasSynchronouslyLoaded) {
          return child;
        }
        return AnimatedOpacity(
            child: child,
            opacity: frame == null ? 0 : 1,
            duration: Duration(seconds: 2),
            curve: Curves.easeOut);
      }),
    );
  }
}
